import request from '@/utils/request';

//视频列表
export function getvideoListApi(data) {
  return request({
    url: '/ManagerClassroom/list',
    method: 'post',
    data: data,
  });
}
// 课程类型
export function classTypeListApi(data) {
  return request({
    url: '/ManagerClassroom/classTypeList',
    method: 'post',
    data: data,
  });
}
// 详情数据
export function infoApi(data) {
  return request({
    url: '/ManagerClassroom/info',
    method: 'post',
    data: data,
  });
}
// 播放次数

export function videoNum(data) {
  return request({
    url: '/ManagerClassroom/video',
    method: 'post',
    data: data,
  });
}

// 单个课程购买
export function singleCoursePayApi(data) {
  return request({
    url: '/ManagerClassroom/pay',
    method: 'post',
    data: data,
  });
}
// 订单号
export function verifyApi(data) {
  return request({
    url: '/ManagerClassroom/verify',
    method: 'post',
    data: data,
  });
}
export function bannerInfoyApi(data) {
  return request({
    url: '/ManagerClassroom/bannerInfo',
    method: 'post',
    data: data,
  });
}
// 支付宝支付
export function AlipayToolApi(data) {
  return request({
    url: '/AlipayTool/pay',
    method: 'post',
    data: data,
  });
}
